package com.csun.cmny.config.properties;

import lombok.Data;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-15 19:45
 * @Description:
 */
@Data
public class MqttProperties {

    private DeviceProperties gateway = new DeviceProperties();

    private SleepProperties sleep = new SleepProperties();

    @Data
    public class SleepProperties extends DeviceProperties {

        private Integer duration;
    }

    @Data
    public class DeviceProperties {

        private String host;

        private String username;

        private String password;

        private String topic;

        private String subClientId;

        private String pubClientId;
    }

}
